Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip already moved packages #19

Merged
merged 2 commits into from
Jun 24, 2019
Merged

Skip already moved packages #19

merged 2 commits into from
Jun 24, 2019

Conversation

coenjacobs
Copy link
Owner

This can go in the next fix release. Each package should only be moved/replaced once, even if the full dependency tree has the same package multiple times. Fixes #17.

@zengenuity
Copy link

This PR prevents moving a file more than once, but I think it doesn't stop the duplicate files from being processed with the replacer more than once. The result is that you get namespaces with repeated prefixes added to them, and they no longer match the directory location.

@coenjacobs
Copy link
Owner Author

@zengenuity The regex that is used to add the prefixed namespaces should take care of that. This is simply for not trying to move them twice. If you have issues with duplicate namespace prefixes, please report this in a separate issue, providing steps to reproduce.

@coenjacobs coenjacobs merged commit b60bf3f into master Jun 24, 2019
@coenjacobs coenjacobs deleted the skip-moved-packages branch June 24, 2019 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No duplicate detection for dependencies loaded via classmaps
2 participants